﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Base_SupplyCityList.aspx.cs" Inherits="FS.Web.BLL.Visa_Base.Base_SupplyCityList" %>

<%@ Register Src="../../UserControl/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<%@ Register Src="../../UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/EasyUI/easyui.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            divresize(90);
            FixedTableHeader("#table1", $(window).height() - 120);
        })
        //新增
        function add() {
            var url = "/BLL/Visa_Base/Base_SupplyCityForm.aspx";
            top.openDialog(url, 'Menu_Form', '供应商签证报价列表 - 添加', 600, 370, 50, 50);
        }
        //编辑
        function edit() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var url = "/BLL/Visa_Base/Base_SupplyCityForm.aspx?key=" + key;
                top.openDialog(url, 'Menu_Form', '供应商签证报价列表 - 编辑', 600, 370, 50, 50);
            }
        }
        //删除
        function Delete() {
            var key = CheckboxValue();
            if (IsEditdata(key)) {
                var delparm = 'action=Delete&tableName=Base_SupplyCity&pkName=SupplyCity_ID&pkVal=' + key;
                delConfig('/Ajax/Common_Ajax.ashx', delparm)
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            供应商签证报价列表
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="float: left;">
            <select id="Searchwhere" class="Searchwhere" runat="server">                
                <option value="c.City_name">签证国家</option>
                <option value="certtype.parm_Value">签证类型</option>
                <option value="s.Supply_Name">供应商</option>                
            </select>
            <input type="text" id="txt_Search" class="txtSearch SearchImg" runat="server" style="width: 100px;"  />
            <input id="Hchange" type="hidden" runat="server" value="0" />  
            <asp:LinkButton ID="lbtSearch" runat="server" class="button green" OnClick="lbtSearch_Click"><span class="icon-botton"
            style="background: url('../../Themes/images/Search.png') no-repeat scroll 0px 4px;">
        </span>查 询</asp:LinkButton>
        </div>
        <div style="text-align: left">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <table id="table1" class="grid" singleselect="true">
            <thead>
                <tr>
                    <td style="width: 20px; text-align: left;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="全选">
                            &nbsp;</label>
                    </td> 
                    <td style="width: 100px; text-align: center;">
                        签证国家
                    </td> 
                    <td style="width: 100px; text-align: center;">
                        签证类型
                    </td>
                    <td style="width: 100px; text-align: center;">
                        供应商
                    </td>
                    <td style="width: 80px; text-align: center;">
                        工作日
                    </td> 
                    <td style="width: 80px; text-align: center;">
                        价格A
                    </td>
                    <td style="width: 80px; text-align: center;">
                        价格B
                    </td>
                    <td style="width: 80px; text-align: center;">
                        价格C
                    </td>
                    <td style="width: 40px; text-align: center;">
                        默认
                    </td>                                                             
                    <td>
                        备注
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 20px; text-align: left;">
                                <input type="checkbox" value="<%#Eval("SupplyCity_ID")%>" name="checkbox" />
                            </td>                            
                            <td style="width: 100px;">
                                 <%#Eval("City_name")%>  
                            </td> 
                            <td style="width: 100px;">
                                <%#Eval("type_cert")%> 
                            </td>
                            <td style="width: 100px;">
                                <%#Eval("Supply_Name")%>
                            </td>
                             <td style="width: 80px;">                               
                                 <%#Eval("SupplyCity_WorkDay")%>  
                            </td>
                            <td style="width: 80px;">                                
                                 <%#Eval("SupplyCity_EndPrice1")%>                                
                            </td>
                            <td style="width: 80px;">                                
                                 <%#Eval("SupplyCity_EndPrice2")%>                                
                            </td>  
                            <td style="width: 80px;">                                
                                 <%#Eval("SupplyCity_EndPrice3")%>                                
                            </td>                             
                            <td style="width: 40px;">
                                <%#Eval("isdefault")%>
                            </td>                                                                                          
                            <td>
                                <a href="#" title=" <%# Eval("rmk2").ToString().Replace("\r\n","<br>") %>" class="easyui-tooltip" >
                                     <%#Eval("rmk")%></a>
                            </td>                              
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='10' style='color:red;text-align:center'>没有找到您要的相关数据！</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>       
    </div>  
    <uc1:PageControl ID="PageControl1" runat="server" />  
    </form>
</body>
</html>